/**
 * Created by yang on 15/3/20.
 */
var config = require('./config');
var Server = require('./core/Server');
var port = process.argv[2] || 8000;
var site = new Server('wxServer',port);


site.loadRouters = function(){
    var app = this.app;
    app.use('/api/wx',require('./modules/wx/api/index'));

}

site.init = function(){
    this.useCoreLogger();
    this.loadFrontend();
    //   this.useXmlParse();
}

if (require.main === module) {
    site.run();
}